import request from '@/utils/httpRequest'

export function fetchParamsList(query) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty/page'),
    method: 'get',
    params: query
  })
}

export function addParamsObj(obj) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty'),
    method: 'post',
    data: obj
  })
}

export function getParamsObj(id) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty/' + id),
    method: 'get'
  })
}

export function delParamsObj(id) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty/' + id),
    method: 'delete'
  })
}

export function putParamsObj(obj) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty'),
    method: 'put',
    data: obj
  })
}

export function getParamsList(data) {
  return request({
    url: request.adornUrl('/merchantservices/collocationtypeproperty/list'),
    method: 'post',
    data: data
  })
}
